﻿using System.IO;
using WeaverCustomTool;

namespace AopCustomTool
{
    class Bench
    {
        static void Main(string[] args)
        {
            // This piece of code weave the interface from the file IWeaveTest.cs and publish the implementation into OutputTest.cs file
            var weavedStreamCode = Weaver.Weave(File.ReadAllText("IWeaveTest.cs"));
            File.WriteAllText("../../OutputTest.cs", weavedStreamCode.GenerateSourceCode());
        }
    }
}
